LassoScript Utility
Basics Browse Detail

[Duration->Year]

Tag Link [Duration->Year] Category Date
Type Member Source Available No
Support Preferred Version 6.0
Change Unchanged Data Source Any
Output Type Integer Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Description

[Duration->Year] returns the integer number of years in a specified duration (based on an average of 365.25 days per year). The specified duration must first be cast using the [Duration] tag before it can be used.

Syntax

[(Duration)->Year]

Parameters

No Parameters Required.

Examples

To return the number of years in a duration:

The following example returns the integer number of years in a duration of 72000 hours (72000:00:00).

[(Duration:'72000:00:00')->Year]

8